# 美丽的2
# Date: 2025/3/27


def count_year():
    cnt = 0
    for i in range(2021):
        if "2" in str(i):
            cnt += 1
    return cnt


if __name__ == '__main__':
    print(count_year())
